package com.aspose.cells;

class zamt implements zahh {
   private zas a;
   private zalv b;
   private Color c = Color.getEmpty();
   private Color d = Color.getEmpty();
   private int e;
   private int f = 0;
   private int g = 1;
   private Object h;
   private boolean i = false;

   zamt(zif var1, Object var2) {
      this.h = var2;
      float var3;
      if (var1.ap() == null) {
         var3 = 96.0F;
      } else {
         var3 = var1.ap().g();
      }

      this.e = (int)(5.0F * var3 / 72.0F + 0.5F);
      this.a = new zas(var1);
      this.b = new zalv(var1);
   }

   zas e() {
      return this.a;
   }

   public zafn a() {
      return this.a;
   }

   zalv f() {
      return this.b;
   }

   public zahf b() {
      return this.b;
   }

   public int c() {
      return this.e;
   }

   public void a(int var1) {
      this.e = var1;
   }

   public int d() {
      return this.g == 0 ? 1 : this.f;
   }

   public void b(int var1) {
      this.f = var1;
   }

   public boolean g() {
      return this.d() != 1;
   }

   public boolean a(zamt var1) throws Exception {
      if (this.g() == var1.g() && this.g()) {
         if (this.d() != var1.d()) {
            return false;
         }

         if (!this.a.a(var1.e())) {
            return false;
         }

         if (!this.b.a(var1.f())) {
            return false;
         }

         if (this.d() != var1.d()) {
            return false;
         }

         if (this.c() != var1.c()) {
            return false;
         }
      }

      return true;
   }

   protected void finalize() throws Exception {
      this.a(false);
   }

   public void h() {
      this.a(true);
      com.aspose.cells.b.a.zg.a(this);
   }

   protected void a(boolean var1) {
      if (!this.i) {
         if (var1 && this.a != null) {
            this.a.i();
         }

         this.i = true;
      }

   }
}
